<!--结算单详情-->
<template>
  <div class="contain">
    <div class="order-detail-top">
      <div class="order-detail-header">
        <span class="f-l">结算单号：<i>{{todolist.SettleBillNo}}</i></span>
      </div>
      <ul class="order-detail-info">        
        <li class="displayflex">
          <label>结算时间</label>
          <p class="flex1">{{todolist.SettleDate | timeshort}}</p>
        </li>
        <li class="displayflex">
          <label>结算单位</label>
          <p class="flex1">{{todolist.SettleCorpName}}</p>
        </li>
        <li class="displayflex">
          <label>总金额</label>
          <p class="flex1">{{todolist.Amount}}元</p>
        </li>
      </ul>      
    </div>
    <div class="order-detail-flor" v-for="item in tododetail">
      <div class="order-no cf">
        <p class="f-l">业务单据：{{item.MVBillNo}}</p>
        <span class="rit f-r">已录发票</span>
      </div>
      <div class="displayflex od-contain">
        <div class="od-contain-lf">
          <img :src="(JSON.parse(item.PictContent)[0].Mobile.Url) | filterImgUrl" 
            v-if='item.PictContent'>
        </div>
        <div class="od-contain-rit">
          <p>{{item.GoodsName}}</p>
          <span>{{item.GoodsSpec}}</span>
          <span>共{{item.Qty}}盒</span>
          <span>合计:{{item.Amount}}元 </span>
          <b>发票号码:{{item.InvoiceNo}}</b>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name:'statementDetail',
  data() {
    return {
      todolist: [],
      tododetail: [],
      checkItem: [],
      selectAmount: 0,
    }
  },
  created(){
    this.getData();
  },
  mounted() {
    this.$nextTick(function() {

    })
  },
  methods: {
    getData: function() {
      var self = this;
      var userinfo = JSON.parse(localStorage.userinfo);
      this.todolist = JSON.parse(sessionStorage.items);
      var query = {
          GUID: this.todolist.Guid,
      };
      this.Ajax.post('getSettleDetail',query).then(function(resp){
          self.tododetail = resp.Datas;
      });
    }
  }
}
</script>